package com.rtwo;

import com.rtwo.utils.MySettings;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import javax.annotation.Resource;

@SpringBootApplication
@ServletComponentScan
@ComponentScan(basePackages = {"com","cn.cnb","co"})
@EnableConfigurationProperties({MySettings.class})
public class SpringBootHelloApplication {

	public static void main(String[] args) {
	    SpringApplication.run(SpringBootHelloApplication.class, new String[]{"zhou","hao"});
	}
}


